/**
 * 
 */
package com.gragra.util;
import java.util.concurrent.atomic.AtomicInteger;
/**
 * an instance of this class will produces a series of unique integer for this instance and is thread safe
 * @author Christoph Teichmann
 * created Oct 28, 2012 8:21:38 PM
 * @version 0.1
 */
public class GlobalNumberer
{
	/**
	 * the atomic integer that is counted up
	 */
	private AtomicInteger ai = new AtomicInteger(0);
	/**
	 * generates a new number with every call
	 * @return
	 */
	public int nextNumber()
	{return ai.getAndIncrement();}
}